const expect = require('chai').expect

const Budget = require('../classes/Budget')
const Stay = require('../classes/Stay')
const App = require('./classes/App')

describe('Budget', () => {
  const app = new App()
  const budget = new Budget()

  const stay = new Stay('Regular: 16Mar2009(mon), 17Mar2009(tues), 18Mar2009(wed)')

  it('Deve criar orçamentos a partir dos dados de uma estadia', () => {
    const budgetedHotel = budget.createBudgets(app.getHotels(), stay)[0]
    expect(budgetedHotel.budget).to.equal(600)
  })

})